﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;

namespace DAO
{
    public class ConnectDB
    {
        public static SqlConnection GetConnect()
        {            
            SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["connectDB"].ToString());
            return conn;
        }
        public static string GetConnectStr()
        {
            return System.Configuration.ConfigurationManager.ConnectionStrings["connectDB"].ToString();
        }
    }
}
